//@ sourceURL=CultureActivityView.js
Ext.ns("CultureActivityView");
CultureActivityView = Ext.extend(Ext.Panel, {
    constructor : function(a) {
        Ext.applyIf(this, a);
        var all=this.initUIComponents();
        CultureActivityView.superclass.constructor.call(this, {
            id : "CultureActivityView",
            title : "安全文化活动管理",
            region : "center",
            layout : "border",
            border : false,
            iconCls : "menu-position",
            items : [all.yearGridPanel,all.yearGridSearchPanel,all.yearGridTreePanel]
        });
    },
    initUIComponents : function() {
         var yearGridComponents=new createyeargridview({
            topbar : {
                inputFormName : 'CultureActivityForm',
                topbarAdd:{
                    hidden:false
                },
                topbarDel:{
                    hidden:false
                }
            },
            search : {
                items : [ {
                    style : "margin:5px 5px 5px 5px;",
                    text : "活动名称"
                }, {
                    columnWidth : 0.2,
                    xtype : "textfield",
                    name : "Q_activityName_S_LK",
                    maxLength : 256
                } ]
            },
            grid : {
                title : "安全文化活动列表",
                rowActions:true,
                listUrl : __ctxPath + "/safecultruetrain/listCultureActivity.do",
                removeUrl : __ctxPath + "/safecultruetrain/deleteCultureActivity.do",
                fields : [ "id", 'years', 'institution', "activityName", "activityDate", "title","activityfunds","sponsor","effect","employeeNames","isActivity"],
                columns : [ {
                    header : "id",
                    dataIndex : "id",
                    hidden : true
                }, {
                    header : "年份",
                    dataIndex : "years",
                    width : 50,
                    sortable : true
                }, {
                    header : "活动名称",
                    dataIndex : "activityName",
                    width : 100
                }, {
                    header : "活动时间",
                    dataIndex : "activityDate",
                    width : 70
                }, {
                    header : "活动主题",
                    dataIndex : "title",
                    width : 70
                }, {
                    header : "活动经费",
                    dataIndex : "activityfunds",
                    width : 100
                },
                {
                    header : "主办方",
                    dataIndex : "sponsor",
                    width : 100
                }]
            },
            tree : {
                treeUrl : __ctxPath + "/safecultruetrain/treeLoadCultureActivity.do"
            }
            
        });
         
         return yearGridComponents;
    }
});